package day03;

public class IfDemo {
    public static void main(String[] args) {
      /*
        int price =850;
        if (price>=800){
            price*=0.7;
        }
        System.out.println("最终消费金额"+price);

       */

       /* double score = 95;
        if (score>0&&score<=100){
            System.out.println(score+"是合法成绩");
        }
        System.out.println("继续执行...");

        */
        /*
        double price = 501;
        if (price >= 500) {
            price*=0.8;
        }else {
            price*=0.9;
        }
        System.out.println("您本次消费"+price);
         */
        /*
        double score = 100;
        if (score>0&&score<=100){
            System.out.println(score+"是合法成绩");
        }else {
            System.out.println("您的成绩不合法");
        }
         */
        /*
        double score =100;
        if(score<0||score>100){
            System.out.println("输入错误,请重新输入");
        }else if (score>=90){
            System.out.println("您的成绩为优");
        }else if (score>=60){
            System.out.println("您的成绩为及格");
        }else{
            System.out.println("很抱歉,您的成绩为不合格");
        }

         */
        /*
        double price=800;
        if (price>=2000){
            price*=0.5;
        } else if (price>=1000) {
            price*=0.7;
        } else if (price>=500) {
            price*=0.8;
        }else {
            price*=0.9;
        }
        System.out.println(price);
         */

    }
}
